ProfilePress\Core\Membership\Models\Coupon\CouponEntity A

Total Complexity 61
Dependencies 9
Dependents 3
Total lines 251
Lines of code 128
Logical lines of code 62
Comment lines 31
Methods 21
Properties 12

Methods 21

Method Rating Maintainability Complexity Lines of code
is_valid()
B
43 22 43
__construct()
S
62 7 10
is_expired()
S
68 3 7
get_end_date()
S
77 3 3
get_start_date()
S
77 3 3
set_plan_ids()
S
78 2 3
save()
S
64 2 10
get_usage_limit()
S
78 2 3
get_amount()
S
78 2 3
get_coupon_application()
S
79 2 3
get_coupon_type()
S
79 2 3
set_coupon_application()
S
70 2 6
get_description()
S
80 1 3
exists()
S
80 1 3
get_id()
S
80 1 3
get_plan_ids()
S
82 1 3
is_recurring()
S
80 1 3
get_usage_count()
S
68 1 7
is_active()
S
80 1 3
activate()
S
79 1 3
deactivate()
S
79 1 3